package io.renren.modules.base.dao;

import io.renren.modules.base.entity.BaseTaskWorkitemEntity;
import io.renren.modules.base.entity.BaseWorkitemInfoEntity;
import io.renren.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-05 17:55:20
 */
@Mapper
public interface BaseTaskWorkitemDao extends BaseDao<BaseTaskWorkitemEntity> {

    //根据TaskId查询工作项
    List<BaseTaskWorkitemEntity> queryWorkitem(String taskId);

    //根据taskid删除任务
    void deleteTask(String taskId);

    //根据workitemId删除关联表
    void deleteWorkitem(String workitemId);

    List<BaseTaskWorkitemEntity> queryTaskId(String[] ids);

    //修改工作项与任务关联表
    void updateWorkitem(BaseTaskWorkitemEntity baseTaskWorkitemEntity);
	
}
